package com.teach.food.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.teach.dto.CommentsSearch;
import com.teach.dto.FoodOrderDTO;
import com.teach.dto.HotelOrderDTO;
import com.teach.entity.Comments;
import com.teach.exception.CodeException;
import com.teach.food.dto.FoodOrderInfoSearch;
import com.teach.food.entity.FoodOrderInfo;

/**
 * <pre>
 * 订单
 * Author : G_peng
 * Date : 2019年12月14日
 * Version : 0.0.1
 * Copyright 2019 Gpeng.top Inc. All rights reserved. 
 * </pre>
 */
public interface FoodOrderInfoService {
	
	List<FoodOrderInfo> selectWeek(String date,String name);
	
	List<FoodOrderInfo> selectMonth(String date,String name);
	
	List<FoodOrderInfo> selectLastMonth(String name);
	
	/**
	 * 行条件搜索查询所有评论
	 * @param commentsSearch
	 * @return
	 * @throws CodeException
	 */
	List<FoodOrderInfo> commentsAllList(FoodOrderInfoSearch foodOrderInfoDTO) throws CodeException;
	
	List<FoodOrderInfo> list(int startIndex,int len );

	PageInfo<FoodOrderInfo> page(int current,int rowMax);
	
	PageInfo<FoodOrderInfo> pageSearch(FoodOrderInfoSearch foodOrderInfoDTO);
	
	FoodOrderInfo get(Integer orderInfoId);
	
	int	delect(Integer orderInfoId);
	
	int update(FoodOrderInfo orderInfoId);
	
	List<FoodOrderDTO> listByuserName(String userName);
}
